package org.cooperativa.controller;

import org.cooperativa.entities.Permiso;
import org.cooperativa.dao.PermisoFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.inject.Named;
import javax.inject.Inject;
import javax.enterprise.context.SessionScoped;

@Named(value = "permisoController")
@SessionScoped
public class PermisoController extends AbstractController<Permiso> implements Serializable {

    @Inject
    private PermisoFacade ejbFacade;

    public PermisoController() {
        super(Permiso.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }
}
